package cn.com.dcsgo.ioc.simple;

/**
 * 实例工厂方法创建bean
 *
 * @author Dcsgo
 * @since 2025/2/3 12:00
 */

public class DefaultServiceLocator {
    private static final ClientServiceImpl clientService = new ClientServiceImpl();

    public ClientServiceImpl createClientServiceInstance() {
        return clientService;
    }

    /**
     * 配置了 factory-bean 后 factory-method 必须是非静态方法
     * @return clientService
     */
    public static ClientServiceImpl createClientServiceInstanceStatic() {
        return clientService;
    }
}
